/**
 * 六边形单位
 */

using UnityEngine;
namespace GameGraphics.HomeWorld
{
    /// <summary>
    /// 格子状态
    /// </summary>
    public enum CellState
    {
        /// <summary>
        /// 空闲
        /// </summary>
        Idle,

        /// <summary>
        /// 鼠标移上去且可以被选中
        /// </summary>
        Hovered_Selectable,

        /// <summary>
        /// 鼠标移上去不可以被选中
        /// </summary>
        Hovered_UnSelectable,

        /// <summary>
        /// 被选中
        /// </summary>
        Selected,
        
    }

    public class HexCell
    {
        /// <summary>
        /// 原始索引
        /// </summary>
        public Vector2Int Indexs;
        /// <summary>
        /// 颜色
        /// </summary>
        public Color Color;
        /// <summary>
        /// 中心点位置
        /// </summary>
        public Vector3 LocalPosition;
        /// <summary>
        /// 格子状态
        /// </summary>
        public CellState State;

        /// <summary>
        /// 归属于某个实体
        /// </summary>
        public HexEntity BelongEntity = null;
    }
}
